/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package au.edu.swin.swinvehicle.manager;

import java.util.List;
import javax.ejb.Remote;

/**
 *
 *
 * @author Administrator
 */
@Remote
public interface ManagerManagerRemote {

    public void addManager(ManagerDetailedTO to) throws ManagerManagerException;

    public void editManager(ManagerDetailedTO to) throws ManagerManagerException;

    public void editManagerDetails(ManagerDetailedTO to) throws ManagerManagerException;

    public void deleteManager(Long id) throws ManagerManagerException;

    public ManagerDetailedTO getManager(Long id) throws ManagerManagerException;

    public List<ManagerTO> getAllManagers() throws ManagerManagerException;

    public List<ManagerDetailedTO> getAllDetailedManagers() throws ManagerManagerException;

    public boolean isUsernameAvailable(String username) throws ManagerManagerException;

    public Long authenticate(String username, String password) throws ManagerManagerException;
}
